#ifndef __SnakeWorld3_SCENE_H__
#define __SnakeWorld3_SCENE_H__

#include "cocos2d.h"
#include "world3.h"
#include "SimpleAudioEngine.h"
#include "SnakeWorld.h"

class SnakeWorld3 : public cocos2d::CCLayer
{
private:
	world *newWorld;
	int score;
	bool ispause;
	bool sticked;
	int stopsteps;
	int nostick;
	CCLabelTTF *scoreTag;
	CCLabelTTF *pauseTag;
	int supersnake_speed;
	int snake_speed;
	float gameTime;
	CCLabelTTF *timeTag;
	CCMenuItemImage *pPauseItem;
	CCMenuItemImage *pStickItem;
	CCMenu *pStickMenu;
public:
	virtual bool init();
	static cocos2d::CCScene* scene();
	void menuCloseCallBack(CCObject *pSender);
	void run(float dt);
	void super_run(float dt);
	void ccTouchesEnded(CCSet* touches, CCEvent *event);
	void updateGameSpeed(float dt);
	void Pause(CCObject *p);
	void sticksnake(CCObject *p);
	CREATE_FUNC(SnakeWorld3);
	void gameOver(CCObject *p);
};

#endif
